package com.neuedu.springbootmy12306.entity;

public class Goods {
	private Integer goodsId;
	private String goodsName;
	private Float price;
	private String imageUrl;

	// 关系映射- 把表关系变成对象关系
	private Category category;

	public Goods() {
		super();
	}

	public Goods(Integer goodsId) {
		super();
		this.goodsId = goodsId;
	}

	public Goods(Integer goodsId, String goodsName, Float price, String imageUrl, Category category) {
		super();
		this.goodsId = goodsId;
		this.goodsName = goodsName;
		this.price = price;
		this.imageUrl = imageUrl;
		this.category = category;
	}

	public Integer getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public Float getPrice() {
		return price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	@Override
	public String toString() {
		return "Goods [goodsId=" + goodsId + ", goodsName=" + goodsName + ", price=" + price + ", imageUrl=" + imageUrl
				+ ", category=" + category + "]";
	}

}
